package org.lightmtv.util;

import java.util.Locale;

import org.commontemplate.standard.i18n.MessageSourceSupport;
import org.commontemplate.standard.i18n.NoSuchMessageException;
import org.lightcommons.util.I18nBundle;

@SuppressWarnings("serial")
public class CommonTemplateMessageSource extends MessageSourceSupport{

	public String getMessage(Locale locale, String name)
			throws NoSuchMessageException {
		return I18nBundle.getBundle("message", "txt", "utf-8", locale)
					.getProperty(name);
	}

}
